#ifndef _BEZIER3_
#define _BEZIER3_


typedef struct {
        float x, y,z;
} p3d;
        
class Bezier3
{
        public:
                Bezier3(int segs);
                ~Bezier3();
                void recalculate(int segs);
                p3d getFromSeg(p3d p1,p3d p2,p3d p3d,int seg);
                p3d getFromMu(p3d p1, p3d p2,p3d p3,float mu);
        private:
                float *coefs;
                int segments;
};

#endif
